<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- v-if 可以用来控制元素的显示和隐藏，但是他会动态创建或者销毁元素-->
        <h1 v-if="show">{{msg}}</h1>
    </div>
    <script src="./vue.js"></script>
    <script>
        let vm = new Vue({
            el:"#app",
            data:{
                msg:"上课啦！！！",
                html:"<span style='color:red'>123</span>",
                show:true
            }
        })
    </script>
</body>
</html>